package com.zx.mes.hyl.service.impl;

import com.zx.mes.hyl.entity.SysUser;
import com.zx.mes.hyl.mapper.SysUserMapper;
import com.zx.mes.hyl.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 实现SysUserService接口
 *
 * @author huayunlong
 * @date 2018-8-28
 * @see com.zx.mes.hyl.service.SysUserService
 */
@Service
public class SysUserServiceImpl implements SysUserService {


    private final SysUserMapper sysUserMapper;

    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    public SysUserServiceImpl(SysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }

    @Override
    public SysUser getOne(String id) {
        return sysUserMapper.getOne(id);
    }
}
